package org.onlineCode.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * 代码
 * @author yaoyaomice
 *
 */
public class Codes implements Serializable {
	private Integer id;
	
	private Integer userId;
	
	private User user; //创建用户
	
	private Language language; //编程语言
	
	private String name; //代码片段名称
	
	private String code; //代码片段
	
	private Date createDate;
	
	private User lastModifyUser; //最后一次修改用户
	
	private Date lastModifyDate; //最后一次修改日期
	
	private boolean publics; //是否是共享

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Language getLanguage() {
		return language;
	}

	public void setLanguage(Language language) {
		this.language = language;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public User getLastModifyUser() {
		return lastModifyUser;
	}

	public void setLastModifyUser(User lastModifyUser) {
		this.lastModifyUser = lastModifyUser;
	}

	public Date getLastModifyDate() {
		return lastModifyDate;
	}

	public void setLastModifyDate(Date lastModifyDate) {
		this.lastModifyDate = lastModifyDate;
	}

	public boolean isPublics() {
		return publics;
	}

	public void setPublics(boolean publics) {
		this.publics = publics;
	}
	
}
